<?php
/**
 * Intreface DAO
 *
 * @author: http://phpdao.com
 * @date: 2015-05-26 14:36
 */
interface TopStoriesDAO{

	/**
	 * Get Domain object by primry key
	 *
	 * @param String $id primary key
	 * @Return TopStories 
	 */
	public function load($topStorie);

	/**
	 * Get all records from table
	 */
	public function queryAll($topStorie);
	
	public function topStories_count($topStorie);
	/**
	 * Get all records from table ordered by field
	 * @Param $orderColumn column name
	 */
	public function queryAllSearchBy($topStorie);
	
	public function searchBy_count($topStorie);
	
	/**
 	 * Delete record from table
 	 * @param topStorie primary key
 	 */
	public function delete($topstories_id);
	
	public function delete_topStories($topStorie);
	/**
 	 * Insert record to table
 	 *
 	 * @param TopStories topStorie
 	 */
	public function insert($topStorie);
	
	/**
 	 * Update record in table
 	 *
 	 * @param TopStories topStorie
 	 */
	public function update($topStorie);	

	/**
	 * Delete all rows
	 */
	public function clean();

	public function queryByTopstoriesTitle($value);

	public function queryByTopstoriesDate($value);

	public function queryByTopstoriesContent($value);

	public function queryByTopstoriesAuthor($value);

	public function queryByTopstoriesImage($value);

	public function queryByCreatedDate($value);

	public function queryByUpdatedDate($value);

	public function queryByStatus($value);


	public function deleteByTopstoriesTitle($value);

	public function deleteByTopstoriesDate($value);

	public function deleteByTopstoriesContent($value);

	public function deleteByTopstoriesAuthor($value);

	public function deleteByTopstoriesImage($value);

	public function deleteByCreatedDate($value);

	public function deleteByUpdatedDate($value);

	public function deleteByStatus($value);


}
?>